package com.x.erp.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

import java.util.Date;

/**
 * 多级营销购买
 */
@MappingTable(tableName = "erp_multilevel_activity_buy")
public class MultilevelActivityBuy extends BaseObject{

	@MappingColumn(columnName = "BUY_ID", columnPk = true, columnLength = 32)
	private String buyId;// 购买ID

	@MappingColumn(columnName = "SHARE_ID")
	private String shareId;// 分享ID

	@MappingColumn(columnName = "ACTIVITY_ID")
	private String activityId;// 活动ID

	@MappingTable(tableName = "erp_multilevel_activity")
	private MultilevelActivity multilevelActivity;

	@MappingColumn(columnName = "USER_ID")
	private String userId;// 用户ID

	@MappingColumn(columnName = "USER_NICKNAME", columnReadOnly = true)
	private String userNickname;// 用户昵称

	@MappingColumn(columnName = "USER_MOBILE", columnReadOnly = true)
	private String userMobile;// 用户手机号

	@MappingColumn(columnName = "USER_HEAD", columnReadOnly = true)
	private String userHead;// 用户头像

	@MappingColumn(columnName = "BUY_STATE")
	private Integer buyState;// 购买状态（1：未成交、2：已成交）

	@MappingColumn(columnName = "BUY_CREATE_TIME")
	private Date buyCreateTime;// 创建时间

	@MappingColumn(columnName = "BUY_UPDATE_TIME")
	private Date buyUpdateTime;// 修改时间

	public String getBuyId() {
		return buyId;
	}

	public void setBuyId(String buyId) {
		this.buyId = buyId;
	}

	public String getShareId() {
		return shareId;
	}

	public void setShareId(String shareId) {
		this.shareId = shareId;
	}

	public String getActivityId() {
		return activityId;
	}

	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}

	public MultilevelActivity getMultilevelActivity() {
		return multilevelActivity;
	}

	public void setMultilevelActivity(MultilevelActivity multilevelActivity) {
		this.multilevelActivity = multilevelActivity;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserNickname() {
		return userNickname;
	}

	public void setUserNickname(String userNickname) {
		this.userNickname = userNickname;
	}

	public String getUserMobile() {
		return userMobile;
	}

	public void setUserMobile(String userMobile) {
		this.userMobile = userMobile;
	}

	public String getUserHead() {
		return userHead;
	}

	public void setUserHead(String userHead) {
		this.userHead = userHead;
	}

	public Integer getBuyState() {
		return buyState;
	}

	public void setBuyState(Integer buyState) {
		this.buyState = buyState;
	}

	public Date getBuyCreateTime() {
		return buyCreateTime;
	}

	public void setBuyCreateTime(Date buyCreateTime) {
		this.buyCreateTime = buyCreateTime;
	}

	public Date getBuyUpdateTime() {
		return buyUpdateTime;
	}

	public void setBuyUpdateTime(Date buyUpdateTime) {
		this.buyUpdateTime = buyUpdateTime;
	}
}
